package cn.hy.face.common.utils;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * 线程相关utils
 */
public class ThreadUtils {

    private static ExecutorService executorService = Executors.newFixedThreadPool(5);

    /**
     * 执行线程任务
     * @param runnable
     */
    public static void execute(Runnable runnable) {
        executorService.execute(runnable);
    }

}
